﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="developlog.aspx.cs" Inherits="Com.Rivyer.Web.admin.developlog" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>开发日志</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/rivcontent.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin-left: 3px;
            margin-right: 3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td height="30">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="24" bgcolor="#353c44">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="6%" height="19" valign="bottom">
                                                        <div align="center">
                                                            <img src="../images/tb.gif" width="14" height="14" /></div>
                                                    </td>
                                                    <td width="94%" valign="bottom">
                                                        <span class="STYLE1">每个功能菜单项</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" style="font-size: 12px">
                    <div class="rivcontent">
                        <div class="title">
                            开发日志
                        </div>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <dx:ASPxGridView ID="developloggrid" runat="server" Border-BorderColor="#87adbf"
                                        AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="createdate" Width="750px" Styles-Header-HorizontalAlign="Center"
                                        Font-Size="12px">
                                        <Columns>
                                            <dx:GridViewDataDateColumn FieldName="createdate" ReadOnly="True" VisibleIndex="0"
                                                Caption="创建日期" Width="87px">
                                                <EditFormSettings Visible="False" />
                                            </dx:GridViewDataDateColumn>
                                            <dx:GridViewDataMemoColumn Caption="开发描述" FieldName="description" VisibleIndex="1">
                                                <PropertiesMemoEdit Rows="10">
                                                    <ValidationSettings CausesValidation="True" ErrorText="不能为空!">
                                                        <RequiredField IsRequired="True" />
                                                    </ValidationSettings>
                                                </PropertiesMemoEdit>
                                                <EditFormSettings RowSpan="5" />
                                            </dx:GridViewDataMemoColumn>
                                            <dx:GridViewCommandColumn Caption="操作" VisibleIndex="2" Width="100px">
                                                <EditButton Visible="True" Text="编辑">
                                                </EditButton>
                                                <NewButton Visible="True" Text="增加">
                                                </NewButton>
                                                <DeleteButton Text="删除">
                                                </DeleteButton>
                                                <CancelButton Text="取消">
                                                </CancelButton>
                                                <UpdateButton Text="更新">
                                                </UpdateButton>
                                            </dx:GridViewCommandColumn>
                                        </Columns>
                                        <Settings ShowFilterRow="True" />
                                        <Styles>
                                            <Header HorizontalAlign="Center">
                                            </Header>
                                            
                                        </Styles>
                                        <Templates>
                                            <EmptyDataRow>
                                                没有可以显示的数据
                                            </EmptyDataRow>
                                        </Templates>
                                        <Border BorderColor="#87ADBF"></Border>
                                    </dx:ASPxGridView>
                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ITConnectionString %>"
                                        DeleteCommand="DELETE FROM [tb_developlog] WHERE [createdate] = @createdate"
                                        InsertCommand="INSERT INTO [tb_developlog] ([createdate], [description]) VALUES (getdate() , @description)"
                                        ProviderName="System.Data.SqlClient" SelectCommand="SELECT [createdate], [description] FROM [tb_developlog] order by createdate desc"
                                        UpdateCommand="UPDATE [tb_developlog] SET [description] = @description WHERE [createdate] = @createdate">
                                        <DeleteParameters>
                                            <asp:Parameter DbType="Date" Name="createdate" />
                                        </DeleteParameters>
                                        <InsertParameters>
                                            <asp:Parameter DbType="Date" Name="createdate" />
                                            <asp:Parameter Name="description" Type="String" />
                                        </InsertParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="description" Type="String" />
                                            <asp:Parameter DbType="Date" Name="createdate" />
                                        </UpdateParameters>
                                    </asp:SqlDataSource>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
